package com.simple.portal.bo.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.simple.portal.bo.IEnterpriseBO;
import com.simple.portal.dao.IEnterpriseDAO;
import com.simple.portal.vo.EnterpriseVO;


@Service("enterpriseBO")
@Transactional(propagation=Propagation.REQUIRED,readOnly=true)
public class EnterpriseBOImpl implements IEnterpriseBO {

	@Autowired
	private IEnterpriseDAO enterpriseDAO;
	
	@Override
	public EnterpriseVO findById(String fiId) {
		return enterpriseDAO.findById(fiId);
	}

	@Override
	public List<EnterpriseVO> findAll() {
		return enterpriseDAO.findAll();
	}

}
